/*
 * @Author: yxfan
 * @Date: 2024-11-13 09:38:07
 * @LastEditTime: 2024-11-13 09:58:12
 * @FilePath: /umi-demo/src/pages/demo/iframe/index.jsx
 * @Description:
 */
import { useState } from 'react';
import { Spin } from 'antd';
import './index.less';
export default () => {
    const [loading, setLoading] = useState(true);
    function onload() {
        debugger;
        setLoading(false);
    }
    return (
        <div className="iframe">
            iframe测试
            <div className="container">
                <iframe
                    src="http://127.0.0.1:5500/index.html"
                    onLoad={onload}
                ></iframe>
                <div className="loading">
                    <Spin spinning={loading}></Spin>
                </div>
            </div>
        </div>
    );
};
